import turtle
a=turtle.Turtle()
b=turtle.Turtle()

a.color("black","yellow")
b.color('red')

def draw_line(heading_angle,L,angle):
    turtle.tracer(False)
    a.setheading(heading_angle)
    a.right(angle/2)
    a.begin_fill()
    a.forward(L)
    a.left(angle)
    a.forward(L)
    a.left(180-angle)
    a.forward(L)
    a.left(angle)
    a.forward(L)
    a.end_fill()
    turtle.tracer(True)

R=100
b.penup()
b.goto(0,0)
b.setheading(270)
b.forward(R)
b.setheading(0)
b.pendown()
a.speed(33)
b.speed(33)
stepangle=20
for i in range(int(360/stepangle)):
    b.circle(R,stepangle)
    b_dir=b.heading()
    b_pos=b.pos()
    a.penup()
    a.goto(b_pos)
    a.pendown()
    draw_line(b_dir-90,R,30)

turtle.done()
